 {% extends "base.html" %}

{% block content %}
    <a href="{% url depart_add %}">Добавить отдел</a>
    <table>
            {% for one in object_list %}
            <tr>
                <td>{{ one.name }}</td>
                <td><a href="{% url depart_edit one.pk %}">Редактировать</a></td>
                <td>
                <form action="{% url depart_delete %}" method="POST">
                {% csrf_token %}
                {% include "delete_token.html" %}
                </form>
                </td>
            </tr>
            
            {% endfor %}
    </table>
{% endblock %}       
